package xian.woniuxy.be.entity;

import java.util.ArrayList;
import java.util.List;

public class GoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goods_name =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goods_name <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goods_name like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goods_name not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goods_name in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsModelIsNull() {
            addCriterion("goods_model is null");
            return (Criteria) this;
        }

        public Criteria andGoodsModelIsNotNull() {
            addCriterion("goods_model is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsModelEqualTo(String value) {
            addCriterion("goods_model =", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelNotEqualTo(String value) {
            addCriterion("goods_model <>", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelGreaterThan(String value) {
            addCriterion("goods_model >", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelGreaterThanOrEqualTo(String value) {
            addCriterion("goods_model >=", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelLessThan(String value) {
            addCriterion("goods_model <", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelLessThanOrEqualTo(String value) {
            addCriterion("goods_model <=", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelLike(String value) {
            addCriterion("goods_model like", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelNotLike(String value) {
            addCriterion("goods_model not like", value, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelIn(List<String> values) {
            addCriterion("goods_model in", values, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelNotIn(List<String> values) {
            addCriterion("goods_model not in", values, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelBetween(String value1, String value2) {
            addCriterion("goods_model between", value1, value2, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsModelNotBetween(String value1, String value2) {
            addCriterion("goods_model not between", value1, value2, "goodsModel");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchIsNull() {
            addCriterion("goods_batch is null");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchIsNotNull() {
            addCriterion("goods_batch is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchEqualTo(String value) {
            addCriterion("goods_batch =", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchNotEqualTo(String value) {
            addCriterion("goods_batch <>", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchGreaterThan(String value) {
            addCriterion("goods_batch >", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchGreaterThanOrEqualTo(String value) {
            addCriterion("goods_batch >=", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchLessThan(String value) {
            addCriterion("goods_batch <", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchLessThanOrEqualTo(String value) {
            addCriterion("goods_batch <=", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchLike(String value) {
            addCriterion("goods_batch like", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchNotLike(String value) {
            addCriterion("goods_batch not like", value, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchIn(List<String> values) {
            addCriterion("goods_batch in", values, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchNotIn(List<String> values) {
            addCriterion("goods_batch not in", values, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchBetween(String value1, String value2) {
            addCriterion("goods_batch between", value1, value2, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsBatchNotBetween(String value1, String value2) {
            addCriterion("goods_batch not between", value1, value2, "goodsBatch");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitIsNull() {
            addCriterion("goods_unit is null");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitIsNotNull() {
            addCriterion("goods_unit is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitEqualTo(String value) {
            addCriterion("goods_unit =", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitNotEqualTo(String value) {
            addCriterion("goods_unit <>", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitGreaterThan(String value) {
            addCriterion("goods_unit >", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitGreaterThanOrEqualTo(String value) {
            addCriterion("goods_unit >=", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitLessThan(String value) {
            addCriterion("goods_unit <", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitLessThanOrEqualTo(String value) {
            addCriterion("goods_unit <=", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitLike(String value) {
            addCriterion("goods_unit like", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitNotLike(String value) {
            addCriterion("goods_unit not like", value, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitIn(List<String> values) {
            addCriterion("goods_unit in", values, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitNotIn(List<String> values) {
            addCriterion("goods_unit not in", values, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitBetween(String value1, String value2) {
            addCriterion("goods_unit between", value1, value2, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsUnitNotBetween(String value1, String value2) {
            addCriterion("goods_unit not between", value1, value2, "goodsUnit");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotIsNull() {
            addCriterion("goods_depot is null");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotIsNotNull() {
            addCriterion("goods_depot is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotEqualTo(String value) {
            addCriterion("goods_depot =", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotNotEqualTo(String value) {
            addCriterion("goods_depot <>", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotGreaterThan(String value) {
            addCriterion("goods_depot >", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotGreaterThanOrEqualTo(String value) {
            addCriterion("goods_depot >=", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotLessThan(String value) {
            addCriterion("goods_depot <", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotLessThanOrEqualTo(String value) {
            addCriterion("goods_depot <=", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotLike(String value) {
            addCriterion("goods_depot like", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotNotLike(String value) {
            addCriterion("goods_depot not like", value, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotIn(List<String> values) {
            addCriterion("goods_depot in", values, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotNotIn(List<String> values) {
            addCriterion("goods_depot not in", values, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotBetween(String value1, String value2) {
            addCriterion("goods_depot between", value1, value2, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsDepotNotBetween(String value1, String value2) {
            addCriterion("goods_depot not between", value1, value2, "goodsDepot");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionIsNull() {
            addCriterion("goods_position is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionIsNotNull() {
            addCriterion("goods_position is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionEqualTo(String value) {
            addCriterion("goods_position =", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionNotEqualTo(String value) {
            addCriterion("goods_position <>", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionGreaterThan(String value) {
            addCriterion("goods_position >", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionGreaterThanOrEqualTo(String value) {
            addCriterion("goods_position >=", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionLessThan(String value) {
            addCriterion("goods_position <", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionLessThanOrEqualTo(String value) {
            addCriterion("goods_position <=", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionLike(String value) {
            addCriterion("goods_position like", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionNotLike(String value) {
            addCriterion("goods_position not like", value, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionIn(List<String> values) {
            addCriterion("goods_position in", values, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionNotIn(List<String> values) {
            addCriterion("goods_position not in", values, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionBetween(String value1, String value2) {
            addCriterion("goods_position between", value1, value2, "goodsPosition");
            return (Criteria) this;
        }

        public Criteria andGoodsPositionNotBetween(String value1, String value2) {
            addCriterion("goods_position not between", value1, value2, "goodsPosition");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}